package november.hashtable;

import java.util.ArrayList;
import java.util.List;

/**
 * @author huangxin
 * @date 2019/11/20-15:12
 */
public class Test {
    public static void main(String[] args) {
        HashTable hashTable = new HashTable(8);

        for (int i = 0; i < 100; i+=5) {
            //添加到哈希表里
            hashTable.add(new Emp(i+1,""+i+1));
        }

        hashTable.list();

//        Emp emp = hashTable.find(86);
//        if (emp == null) {
//            System.out.println("找不到对应的元素");
//        }
//        System.out.println(emp);

        hashTable.delete(86);

        hashTable.list();
    }
}
